package com.nondo.rdp.finance.domain.collection;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.nondo.rdp.core.domain.base.BaseEntity;
import com.nondo.rdp.finance.config.DbConfig;

import javax.persistence.*;

/**
 * 采集列表
 */
@Entity
@Table(name = DbConfig.DEFAULT_TABLE_PREFIX + "coll_list")
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
public class CollList {
    public static final Integer STATUS_DEFAULT = 0;//正常开启
    public static final Integer STATUS_CLOSE = 1;//关闭

    private Long id;    //自增ID
    private int albumId;//专辑ID
    private String title;   //标题
    private int status;  //所属类型，0=正常开启，1=关闭

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "albumId", length = 11)
    public int getAlbumId() {
        return albumId;
    }

    public void setAlbumId(int albumId) {
        this.albumId = albumId;
    }

    @Column(name = "title", length = 256)
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Column(name = "status", length = 2)
    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
